//
//  MainSocketDelegate.h
//  TcpTest_Server
//
//  Created by scarlettsun on 12-7-28.
//  Copyright (c) 2012年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"

#ifndef CLIENT_LISTEN_PORT
#define CLIENT_LISTEN_PORT  9529
#endif
#ifndef LENGTH
#define LENGTH  sizeof(NSUInteger)
#endif 

@interface FileListenSocket : NSObject<GCDAsyncSocketDelegate>
{
    bool isRunning;
    dispatch_queue_t socketQueue;
}

@property (retain)GCDAsyncSocket  *listenSocket;
@property NSUInteger port;

- (void)startStop;

+(NSMutableArray *)fileSocketsQueue;
@end
